<template>
  <div class="fh-btn">
    <el-button v-if="isDisabledBtn" type="primary"><i class="el-icon-back"></i> 返回</el-button>
    <el-button v-else type="primary" @click="routerBackMixin"><i class="el-icon-back"></i> 返回</el-button>
  </div>
</template>

<script>
  // import { mapState, mapMutations, mapActions } from 'vuex'
  // import validMixins from '@/mixins/validMixins.js'
  export default {
    name: 'FangHuiBtn',
    components: {
      // TablesGZCJ,
    },
    // mixins: [validMixins],
    props: {
      isDisabledBtn: {
        default: false
      },
    },
    // mixins: [validMixins],
    data() {
      return {
        iconStyle: {
          fontSize:null,
          color:null,
        }
      }
    },
    computed: {
      // ...mapState('user', ['token', 'userInfo'])
    },
    watch: {
      // 'cmAddForm.enginePlatform': function(val) {
      //   console.log('enginePlatformval', val)
      //   if (val) {
      //     this.emissionOptionReq()
      //   }
      // }
    },
    created() {

    },
    mounted() {
    },
    methods: {
      // ...mapActions('user', ['closeSideBar']),
      // ...mapMutations('user', ['CHAGE_TOKEN']),
      routerBackMixin(){
        this.$router.go(-1)
      },
    }
  }
</script>

<style lang="scss" scoped>
  #FangHuiBtn {

  }
  .fh-btn{
    position: absolute;
    top: 30px;
    right: 40px;
  }
</style>

